#ifndef XML_DEVICE_OBJECT_H
#define XML_DEVICE_OBJECT_H

#include "knx/qt_knx.h"
#include "control/cknxcontrol.h"
#include <QDomElement>

class Xml_DEVICE_OBJECT
{
public:
    explicit Xml_DEVICE_OBJECT(QDomElement ele, void *cntDelegate);
    ~Xml_DEVICE_OBJECT();

    QList<DEVICE_OBJECT *> *knxRegListRequest();
    void doAction(QString action,QString value);
    void doRead();

    QString actionFromStatus(QString address,QString value);
    QString valueCheck(QString action,QString value);

    void removeDevList();

    QString _id,_zone,_type,_name,_exp,_status,_send,_dim_send,_stop_send,_mode_send,_wind_send,_selection;

    QList<DEVICE_OBJECT *> *_regList;

    CKnxControl *_usrcontrol;
    int _read_times;
};

#endif // JSON_DEVICE_OBJECT_H
